﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KPIS.GERP.GHRMS.MODEL
{
    public class MasDistrictInfo : RecordInfo
    {
        private Nullable<int> seq;
        private string name;
        private string name_eng;
        private MasAmphurInfo amp_seq;

        public MasDistrictInfo()
        {
        }
        public MasDistrictInfo(Nullable<int> Sequence)
        {
            this.Sequence = Sequence;
        }
        public MasDistrictInfo(Nullable<int> Sequence, string Name, string NameEng, MasAmphurInfo Amphurs
            , Nullable<int> CreatedBy, Nullable<int> UpdatedBy)
        {
            this.Sequence = Sequence;
            this.Name = Name;
            this.NameEng = NameEng;
            this.Amphurs = Amphurs;
            this.CreatedBy = CreatedBy;
            this.UpdatedBy = UpdatedBy;
        }
        public Nullable<int> Sequence
        {
            get { return seq; }
            set { seq = value; }
        }
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public string NameEng
        {
            get { return name_eng; }
            set { name_eng = value; }
        }
        public MasAmphurInfo Amphurs
        {
            get { return amp_seq; }
            set { amp_seq = value; }
        }
	    public string ConcatDistrictAmphurProvince
	    {
		    get { return String.Format("{0} {1} {2}", Name, Amphurs.Name, Amphurs.Provinces.Name); } 
	    }
    }
}
